/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.FunctionDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface FunctionInterface {

    ArrayList<FunctionDTO> readByAll();

    FunctionDTO findById(int id);

    ArrayList<FunctionDTO> findByName(String name);

    ArrayList<FunctionDTO> findByDTO(FunctionDTO dto);

    ArrayList<FunctionDTO> findByRoleId(int roleId);

    boolean create(FunctionDTO function);

    boolean update(FunctionDTO function);

    boolean delete(FunctionDTO function);

    boolean delete(int id);
}
